package com.dz.core.util;

import com.alibaba.fastjson.JSONObject;
import com.dz.core.dto.ReqBody;

public class Test {

    public static void main(String[] args) {
        JSONObject body = new JSONObject();
        body.put("name","test");
        body.put("pwd","test");
        body.put("vcode","test");

        ReqBody reqBody = new ReqBody();
        reqBody.setAppId("1234");
        reqBody.setPage(null);
        reqBody.setRnd(1234);
        reqBody.setTimestamp(System.currentTimeMillis());
        reqBody.setBody(body);

        String jo = JSONObject.toJSONString(reqBody);
        System.out.println("jo = " + jo);

    }
}
